// interface IPerson {
//   name: string;
//   age: number;
//   say(num: number): boolean;
// }
type IPerson = {
  name: string;
  age: number;
  say(num: number): boolean;
};
let person: IPerson = {
  name: "张三",
  age: 20,
  say(num: number) {
    console.log("hello " + num);
    return false;
  },
};

let flag: boolean = person.say(4);
console.log(flag);

let person2: IPerson = {
  name: "张三",
  age: 20,
  say(num: number) {
    console.log("hello " + num);
    return false;
  },
};
